package com.bjc.principle.chainresp;

/**
 * @program: DesignPattern
 * @description:
 * @author: bjc
 * @create: 2021-01-04 16:17
 */
public class Leader extends Handler{
    @Override
    public void process(Integer info) {
        if (info>0&&info<11){
            System.out.println("Leader 处理！");
        }else {
            nextHandler.process(info);
        }
    }
}
